//
//  HTSingleton.h
//  HappyTravel
//
//  Created by JiePan’s Mac on 2018/8/6.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface HTSingleton : NSObject

+ (instancetype)shareInstance;

+ (void)alert:(NSString *)message  Con:(id)controller;

/**
 *  getCurrentTime
 */
+ (NSString *)getCurrentTime;

/**
 *  getCurrentDay
 */
+ (NSString *)getCurrentDay;

/**
 *  getCurrentMonth
 */
+ (NSString *)getCurrentMonth;

/**
 *  getCurrentYear
 */
+ (NSString *)getCurrentYear;

/** 保存数据的路径 */
+ (NSString *)createFullPathForDocument:(NSString *)fullPath;

/** 从路径中获取保存model数组 */
+ (NSMutableArray *)readModelArrayForDocument:(NSString *)path;

/** 保存数据到沙盒 */
+ (void)saveModelDictionaryInDocument:(NSMutableArray *)array andPath:(NSString *)path;

/**
 获取单张图片的实际size
 
 @param singleSize 原始
 @return 结果
 */
+ (CGSize)getSingleSize:(CGSize)singleSize;


@end
